package com.xinzhi.text;

import com.xinzhi.dao.impl.ChooseUtil;

import java.util.Scanner;

public class fc_Main {
    public static void main(String[] args) {
        ChooseUtil chooseUtil = new ChooseUtil();
        System.out.println("1.增加2.删除3.修改4.全查5.单查");
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        switch(num){
            case 1:
                chooseUtil.add();
                break;
            case 2:
                chooseUtil.delete();
                break;
            case 3:
                chooseUtil.update();
                break;
            case 4:
                chooseUtil.getAll();
                break;
            case 5:
                chooseUtil.getBookById();
                break;
            default:
                break;
        }
    }
}
